package cn.wolfcode.wms.qo;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QueryObject {

    private Integer currentPage = 1;
    private Integer pageSize = 5;

    public Integer getStart() {
        return (currentPage - 1) * pageSize;
    }


    protected String str2null(String str){
        if (str == null || "".equals(str.trim())) {
            return  null;
        }
        return str;
    }
}
